<div class="main-container">
    <div class="LHY_banner_top">
      
      <h2>COMPRA UNA Y LLÉVESE OTRA GRATIS LIQUIDACIÓN CON DESCUENTO HASTA</h2>
    </div>
    <div class="LHY-module">
      <div style="height: 48px;"></div>
      <div class="LHY_slider_container prd11_product">
        <div class="slide-area">
            <ul class="lists-10"></ul>
        </div>
        <div class="arrow-controll j-arrow-left"></div>
        <div class="arrow-controll j-arrow-right"></div>
      </div>
    </div>
    <div class="LHY_display">
      <div class="display1">
        <img src="./images/display4-top-img.png" class="top_banner">
        <div class="mwrap mwrap1">
          <div class="jItem jItem1">
              <ul>
                 <li class="f-item f-item1 f-item-1 current">
                    <div class="sPic sPic1">
                        <a href="#" target="_blank">
                            <span class="fImg"><img src="./images/display1-small-1.png" alt="JIAYU S3+ 5.5'' 3GB 16GB"></span>
                            <span class="sborder">JIAYU S3+ 5.5''</span>
                        </a>
                    </div>
                    <div class="bPic bPic1" style="display: block;">
                        <span class="fImg"><img src="./images/display1-product-1.jpg" alt="JIAYU S3+ 5.5'' 3GB 16GB" usemap="#map1" ></span>
                        <map name="map1">
                          <area href="#" shape="rect" coords="0,0,265,235"></a>
                          <area href="#" shape="rect" coords="0,235,265,435"></a>
                          <area href="#" shape="rect" coords="265,0,645,435"></a>
                        </map>
                    </div>
                </li>
                <li class="f-item f-item1 f-item-2">
                  <div class="sPic sPic1">
                        <a href="#" target="_blank">
                            <span class="fImg"><img class="" src="./images/display1-small-2.png" alt="Lenovo P780 4000mAh"></span>
                            <span class="sborder">Lenovo P780</span>
                        </a>
                    </div>
                    <div class="bPic bPic1">
                        <span class="fImg"><img src="./images/display1-product-2.jpg" alt="JIAYU S3+ 5.5'' 3GB 16GB" usemap="#map1" ></span>
                        <map name="map1">
                          <area href="#" shape="rect" coords="0,0,265,235"></a>
                          <area href="#" shape="rect" coords="0,235,265,435"></a>
                          <area href="#" shape="rect" coords="265,0,645,435"></a>
                        </map>
                    </div>
                </li>
                <li class="f-item f-item1 f-item-3">
                  <div class="sPic sPic1">
                        <a href="#" target="_blank">
                            <span class="fImg"><img class="" src="./images/display1-small-3.png" alt="Xiaomi Mi Band Pulsera"></span>
                            <span class="sborder">Xiaomi Mi Band Pulsera</span>
                        </a>
                    </div>
                    <div class="bPic bPic1">
                        <span class="fImg"><img src="./images/display1-product-3.jpg" alt="JIAYU S3+ 5.5'' 3GB 16GB" usemap="#map1" ></span>
                        <map name="map1">
                          <area href="#" shape="rect" coords="0,0,265,235"></a>
                          <area href="#" shape="rect" coords="0,235,265,435"></a>
                          <area href="#" shape="rect" coords="265,0,645,435"></a>
                        </map>
                    </div>
                  </li>
                  <li class="f-item f-item1 f-item-4">
                      <div class="sPic sPic1">
                            <a href="#" target="_blank">
                                <span class="fImg"><img class="" src="./images/display1-small-4.png" alt="MEIZU MX5 3GB 16GB"></span>
                                <span class="sborder">MEIZU MX5</span>
                            </a>
                        </div>
                        <div class="bPic bPic1">
                            <span class="fImg"><img src="./images/display1-product-4.jpg" alt="JIAYU S3+ 5.5'' 3GB 16GB" usemap="#map1" ></span>
                            <map name="map1">
                              <area href="#" shape="rect" coords="0,0,265,235"></a>
                              <area href="#" shape="rect" coords="0,235,265,435"></a>
                              <area href="#" shape="rect" coords="265,0,645,435"></a>
                            </map>
                        </div>
                  </li>
                <li class="f-item f-item1 f-item-5">
                    <div class="sPic sPic1">
                          <a href="#" target="_blank">
                              <span class="fImg"><img class="" src="./images/display1-small-4.png" alt="innos D6000 3GB 32GB"></span>
                              <span class="sborder">innos D6000</span>
                          </a>
                      </div>
                      <div class="bPic bPic1">
                          <span class="fImg"><img src="./images/display1-product-1.jpg" alt="JIAYU S3+ 5.5'' 3GB 16GB" usemap="#map1" ></span>
                          <map name="map1">
                            <area href="#" shape="rect" coords="0,0,265,235"></a>
                            <area href="#" shape="rect" coords="0,235,265,435"></a>
                            <area href="#" shape="rect" coords="265,0,645,435"></a>
                          </map>
                      </div>
                </li>
                <li class="f-item f-item1 f-item-6">
                    <div class="sPic sPic1">
                          <a href="#" target="_blank">
                              <span class="fImg"><img class="" src="./images/display1-small-4.png" alt="Lenovo K3 Note 2GB 16GB"></span>
                              <span class="sborder">K3 Note</span>
                          </a>
                      </div>
                      <div class="bPic bPic1">
                          <span class="fImg"><img src="./images/display1-product-2.jpg" alt="JIAYU S3+ 5.5'' 3GB 16GB" usemap="#map1" ></span>
                          <map name="map1">
                            <area href="#" shape="rect" coords="0,0,265,235"></a>
                            <area href="#" shape="rect" coords="0,235,265,435"></a>
                            <area href="#" shape="rect" coords="265,0,645,435"></a>
                          </map>
                      </div>
                </li>
                <li class="f-item f-item1 f-item-7">
                  <div class="sPic sPic1">
                    <a href="#" target="_blank">
                        <span class="fImg"><img class="" src="./images/display1-small-4.png" alt="Lenovo K80M(P90) 4GB 64GB 4000mAh Preto"></span>
                        <span class="sborder">K80M(P90)</span>
                    </a>
                    </div>
                    <div class="bPic bPic1">
                        <span class="fImg"><img src="./images/display1-product-4.jpg" alt="JIAYU S3+ 5.5'' 3GB 16GB" usemap="#map1" ></span>
                        <map name="map1">
                          <area href="#" shape="rect" coords="0,0,265,235"></a>
                          <area href="#" shape="rect" coords="0,235,265,435"></a>
                          <area href="#" shape="rect" coords="265,0,645,435"></a>
                        </map>
                    </div>
                </li>
            </ul>
          </div>
        </div>
      </div>
  
      <div class="display2">
        <img src="./images/display4-top-img.png" class="top_banner">
        <div class="mwrap mwrap2">
          <div class="jItem jItem2">
              <ul>
                 <li class="f-item f-item2 current" style="margin-bottom: 5px;">
                    <div class="sPic sPic2">
                        <a href="#" target="_blank">
                            <span class="fImg"><img class="" src="./images/display2-product1.png" alt="Xiaomi MI 4i 2GB 32GB" style="width: 316px;height: 306px;"></span>
                            <span class="sborder">Xiaomi MI 4i 2GB 32GB</span>
                        </a>
                    </div>
                    <div class="bPic bPic1" style="display:block;">
                        <span class="fImg"><img src="./images/display1-product-1.jpg" alt="JIAYU S3+ 5.5'' 3GB 16GB" usemap="#map1" ></span>
                        <map name="map1">
                          <area href="#" shape="rect" coords="0,0,265,235"></a>
                          <area href="#" shape="rect" coords="0,235,265,435"></a>
                          <area href="#" shape="rect" coords="265,0,645,435"></a>
                        </map>
                    </div>
                </li>
                <li class="f-item f-item2">
                  <div class="sPic sPic2">
                        <a href="#" target="_blank">
                            <span class="fImg"><img class="" src="./images/display2-product2.png" alt="Bluboo XTouch 3GB 32GB Preto"></span>
                            <span class="sborder">Bluboo XTouch</span>
                        </a>
                    </div>
                    <div class="bPic bPic1">
                        <span class="fImg"><img src="./images/display1-product-2.jpg" alt="JIAYU S3+ 5.5'' 3GB 16GB" usemap="#map1" ></span>
                        <map name="map1">
                          <area href="#" shape="rect" coords="0,0,265,235"></a>
                          <area href="#" shape="rect" coords="0,235,265,435"></a>
                          <area href="#" shape="rect" coords="265,0,645,435"></a>
                        </map>
                    </div>
                </li>
                <li class="f-item f-item2">
                  <div class="sPic sPic2">
                        <a href="#" target="_blank">
                            <span class="fImg"><img class="" src="./images/display2-product2.png" alt="XIAOMI MI 4i 2GB 16GB"></span>
                            <span class="sborder">XIAOMI MI 4i</span>
                        </a>
                    </div>
                    <div class="bPic bPic1">
                        <span class="fImg"><img src="./images/display1-product-3.jpg" alt="JIAYU S3+ 5.5'' 3GB 16GB" usemap="#map1" ></span>
                        <map name="map1">
                          <area href="#" shape="rect" coords="0,0,265,235"></a>
                          <area href="#" shape="rect" coords="0,235,265,435"></a>
                          <area href="#" shape="rect" coords="265,0,645,435"></a>
                        </map>
                    </div>
                  </li>
                  <li class="f-item f-item2" style="margin-right: 0px;">
                      <div class="sPic sPic2">
                            <a href="#" target="_blank">
                                <span class="fImg"><img class="" src="./images/display2-product2.png" alt="Xiaomi Redmi Note 2 2GB 16GB Branco"></span>
                                <span class="sborder">Redmi Note 2</span>
                            </a>
                        </div>
                        <div class="bPic bPic1">
                            <span class="fImg"><img src="./images/display1-product-4.jpg" alt="JIAYU S3+ 5.5'' 3GB 16GB" usemap="#map1" ></span>
                            <map name="map1">
                              <area href="#" shape="rect" coords="0,0,265,235"></a>
                              <area href="#" shape="rect" coords="0,235,265,435"></a>
                              <area href="#" shape="rect" coords="265,0,645,435"></a>
                            </map>
                        </div>
                  </li>
            </ul>
          </div>
        </div>
      </div>
  
      <div class="display3">
        <div class="display3-container">
          <div class="display3-top">
             <img src="./images/display3-top-img.png" class="top_banner">
          </div>
          <div class="j-module f-goods">
            <ul class="lists-4 clearfloat"></ul>
          </div>
        </div>
      </div>
      
      <div class="display4">
        <img src="./images/display4-top-img.png" class="top_banner">
        <div class="display4-container clearfloat">
          <div class="col-left l">
             <img src="./images/display4-word1.png" class="img-word" alt="Mini Veículo Eléctrico Portátil Auto Equilibrável Preto"/>
               <div class="buy-btn">
                 <a href="#" style="width:120px;">Comprar Agora</a>
               </div>
              <a href="#">
                <img src="./images/display4-product1.png" alt="Mini Veículo Eléctrico Portátil Auto Equilibrável Preto "/>
              </a>
          </div>
           <div class="col-right r">
            <ul class="LHY-product-list lists-12 clearfloat">
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div> 
        
  <style type="text/css">
  .LHY_banner_top {width: 100%; height: 300px; background: url(./images/top-banner-bg.jpg)no-repeat top center; text-align: center;}
  .LHY_banner_top h2 { width: 1038px; opacity: 0;}
  .LHY-module {height: 400px;width: 100%;background: url(./images/slider-bg.jpg)repeat-y; text-align: center;}
  .slide-area{ width: 990px; height: 306px; overflow: hidden; position: relative; margin: 0px auto;} 
  .slide-area ul{position: absolute;left: 0px;top: 0;margin-left: -10px;white-space: nowrap; font-size: 0;} 
  .slide-area li{display: inline-block; *display: inline; *zoom: 1; overflow:hidden; padding: 5px; margin-left: 10px; vertical-align: middle;} 
  .slide-area .jItem{width: 180px; height: 300px;}
  .slide-area .jPic img{display:block;}
  .slide-area .jPic img:hover {margin-top: -5px;}
  .LHY_slider_container{position: relative;}
  .arrow-controll {z-index:1;width:61px;height:61px;cursor:pointer; background: url(./images/slider-arrow-bg.png)no-repeat;position:absolute;;top:50%;margin-top:-15.5px;}
  .j-arrow-left{left: 0;background-position: 0 0;} 
  .j-arrow-right{right:0;background-position: 100% 0 ;}
  .LHY_display {background:url(./images/display-bg.png)repeat;text-align: center;}
  .display1,.display2,.display3-container,.display4 {width: 990px;margin: 0 auto;}
  .LHY_display .top_banner {margin-top: 10px;}
  .mwrap{position: relative; width: 990px; margin: 5px auto;}
  .mwrap .jItem{position: relative; height: 442px;}
  .mwrap .jItem ul{width: 320px; padding: 0;}
  .mwrap .jItem ul li{float: left;margin: 0 6px 5px 0;border: 2px solid transparent;}
  .mwrap .jItem ul li.f-item-1 {margin-bottom: 0px;}
  .mwrap .jItem ul li.current{border: 2px solid #ff0000;}
  .jItem .sPic{position: relative;}
  .mwrap .jItem .bPic{ position: absolute; left: 326px; top: 2px; width: 655px; height: 520px; display: none;}
  .fImg img {display: block;}
  .bPic .fImg img {height: 436px;width: 663px;}
  .mwrap .jItem .sborder { position: absolute; width: 100%; left: 0px; bottom: 0px; height: 25px; line-height: 25px; background: rgba(146, 146, 146, 0.7); font-size: 12px; color: #fff;overflow: hidden;}
  .display2 .mwrap .jItem ul {margin-left: 670px;}
  .display2 .mwrap .jItem ul li {margin-right: 10px;}
  .display2 .mwrap .jItem .bPic {left: 0;}
  .display2 .sPic .fImg img {width: 96px;height: 120px;}
  .display3 {background: #e8ad0b;margin-top: 20px;}
  .display3-container {padding: 25px 0 15px;}
  .display3-top {background: #f1f1f1;}
  .f-goods {margin-top: 10px;}
  .f-goods .f-item{width: 490px; height: 240px; overflow: hidden; background-color: #fff; position: relative; margin-bottom: 10px;; float: left;}
  .f-goods .f-item:nth-child(2n+1) {margin-right: 10px;}
  .f-goods .jPic{width: 240px; height: 240px; float: left; margin-right: 20px;}
  .f-goods .f-item:hover .jPic img{opacity: 0.6;} 
  .jGoodsInfo .jDesc{display: block; text-align: justify; margin-top: 60px;} 
  .f-goods .jTitle{font-size: 24px;} 
  .f-goods .jAdText{font-size: 18px; display: block; margin-top: 10px;} 
  .f-goods .goBar{background:rgba(99, 20, 162, 0.6); height: 46px; width: 100%; color: #fff; position: absolute; left: 0; bottom: 0; display: block; line-height: 46px; text-align: right; font-family: Arial;}
  .f-goods .btn-buy{background: #6314a2; width: 135px; height: 35px; float: right; display: block; margin: 5px 10px 0 0; border-radius: 5px; line-height: 35px; text-align: center; font-size: 18px;}
  .f-goods .goBar .pNum{color: #fff100; margin-right: 10px; font-size: 18px;}
  .f-goods .goBar del{color: #000000; font-size: 14px;} 
  .f-goods .goBar .jdNum{font-size: 30px;}
  .display4-container{padding-bottom: 15px;}
  .display4-container .col-left{width: 200px; background: #ffffff; border: 2px solid #333333; padding: 0px;} 
  .display4-container .img-word{margin: 13px 0;} 
  .display4-container .buy-btn a{background: #f62d3f; color: #fff; font-size: 14px; padding: 5px; float: right; display: block; margin: 7px;} 
  .display4-container .col-right{width: 778px;margin-top: 0px;} 
  .LHY-product-list li{width: 187px; float: left; background: #fff; margin: 0px 10px 10px 0px; position: relative;} 
  .LHY-product-list li:nth-child(4n + 4) {margin-right:0;}
  .product-img img{width: 144px; height: 126px; margin-top: 10px;} 
  .LHY-product-list li:hover .product-img img{opacity: 0.6;} 
  .discountNumber { position: absolute; background: #f62d3f; color: #fff; top: 0; right: 0; width: 40px; height: 40px; border-radius: 0px 0px 0px 30px; line-height: 35px; font-size: 14px; font-weight: bold;}
  
  .short-ico{position: absolute; top: 0px; right: 0px;} 
  .product-dec .text{font-size: 14px; color: #666666;line-height:15px;}
  .product-dec .price{font-size: 24px; color: #f62d3f; font-weight: bold;} 
  .product-dec .price del{font-size: 14px; color: #333333;} 
  .product-dec .price .big{font-size: 30px;} 
  .product-dec .buy-btn a{width: 87%;}
  </style>
  <script type="text/javascript">
    (function ($) {
        var str1 ='';
        for(var i = 0; i < 10; i ++){
            str1 += `<li>
                    <div class="jItem">
                        <div class="jPic">
                            <a href="#" target="_blank"><img class="" src="./images/slider-product-1.jpg" alt="Oukitel K10000 10000mAh 2GB 16GB Prata"></a>
                        </div>
                    </div>
                </li>`;
        }
        $(".lists-10").append(str1);
      var str2 =  `<li>
                <div class="product-img">
                  <img src="./images/2016040616.jpg">
                </div>
                <div class="product-dec">
                  <p class="text">Cuerda de estiramiento Pedal</p>
                  <p class="price"><del>299.99€</del><span class="big">7</span>.99€</p>
                  <div class="buy-btn">
                     <a href="#">Comprar Agora</a>
                  </div>
                </div>
                <span class="discountNumber">2€</span>
              </li>`;
        var str2_12 = '';
        for (var i = 0; i < 12; i++){
            str2_12 += str2;
        }
        $(".lists-12").append(str2_12);
        var str3_4 = '';
        for(var i = 0; i < 4; i++){
          str3_4 +=  `<li class="f-item">
                <a href="#" target="_blank" title="Oukitel K10000 10000mAh 2GB 16GB Prata" class="link-g">
                  <span class="jPic">
                      <img class="" src="./images/display3-1.png" alt="Oukitel K10000 10000mAh 2GB 16GB Prata">
                  </span>
                  <span class="jGoodsInfo">
                      <span class="jDesc">
                          <img src="./images/display3-word1.png" alt="Oukitel K10000 10000mAh 2GB 16GB Prata">
                      </span>
                  </span>
                  <span class="goBar">
                    <span class="btn-buy">Comprar Agora</span>
                    <span class="pNum"><del>219.99€</del><span class="jdNum">189</span>.99€</span>
                  </span>
              </a>
            </li>`
        }
        $(".lists-4").append(str3_4);

        $(".LHY-module").each(function(index, target){
            var ul = $("ul", target),
                li = $("li", target),
                li_width = li.outerWidth(),
                li_length = li.length,
                left = ul.position().left,
                distance = li_width + parseFloat(li.css("margin-left")),
                threshold = ul.width() / 2;   //移动left的阀值
            
            if(threshold < $(target).width()){
                ul.append(ul.html());
            }
            li = $("li", target);
            
            function step(){
                left-=1;
                if(left <= -threshold){
                    left=0;
                }
                ul[0].style.left = left+"px";
            }
            var timer=setInterval(step,30);
            $(".LHY_slider_container",target).hover(function(){
                clearInterval(timer);
            },function(){
                timer=setInterval(step,30);
            });
            var isClick=false;
            
            $(".j-arrow-left", target).click(function(){
                if(!isClick){
                    isClick=true;
                    
                    var tmp = distance - Math.abs(left % distance);
                    if(tmp === 0){
                        if(left - distance <= -threshold){
                            left = tmp;
                            ul.css("left", tmp+"px");   
                        }
                        left -= distance;
                    }else{
                        if(left - tmp <= -threshold){
                            left = tmp;
                            ul.css("left", tmp+"px");   
                            left -= distance;
                        }else{
                            left -= tmp;
                        }
                    }
                    
                    ul.animate({left:left},{complete:function(){isClick=false;}})
                }
            });
            
            $(".j-arrow-right", target).click(function(){
                if(!isClick){
                    isClick=true;
                    
                    var tmp = Math.abs(left % distance);
                    if(tmp === 0){
                        if(left ===  0){
                            left = -threshold;
                            ul.css("left", left);   
                        }
                        left += distance;
                    }else{
                        if(left + tmp > 0){
                            left = 0;
                        }else{
                            left += tmp;
                        }
                    }
                    
                    ul.animate({left:left},{complete:function(){isClick=false;}})
                }
            });
            
        });
  
      var seletor1=$('.display1 .mwrap1'),
        _item1=$('.display1 .mwrap1 .f-item1 .sPic1'),
        _fitem1=$('.display1 .mwrap1 .f-item1'),
        _index1 = 0;
        var canHover1=false;
            
        _item1.bind('mouseenter',function(e){
          var _this1=$(this);
          canHover1=true;
          if(canHover1){
                  settab(_this1);
              }
        }).bind('mouseleave',function(){
           canHover1=false;
        });
  
        function settab(_this1){
          nIdx=_this1.closest('.f-item1').index();
          if(_index1!=nIdx){
            _index1 = nIdx;
            seletor1.find('.f-item1').removeClass('current');
            _this1.closest('.f-item1').addClass('current')
            seletor1.find('.bPic1').hide();
            _fitem1.eq(_index1).find('.bPic1').fadeIn(1000); 
          } 
        }
      
  
      var seletor2=$('.display2 .mwrap2'),
        _item2=$('.display2 .mwrap2 .f-item2 .sPic2'),
        _fitem2=$('.display2 .mwrap2 .f-item2'),
        _index2 = 0;
        var canHover2=false;
            
        _item2.bind('mouseenter',function(e){
          var _this2=$(this);
          canHover2=true;
          if(canHover2){
                  settab2(_this2);
            }
        }).bind('mouseleave',function(){
           canHover2=false;
        });
  
        function settab2(_this2){
          nIdx2=_this2.closest('.f-item2').index();
          if(_index2!=nIdx2){
            _index2 = nIdx2;
            seletor2.find('.f-item2').removeClass('current');
            _this2.closest('.f-item2').addClass('current')
            seletor2.find('.bPic2').hide();
            _fitem2.eq(_index2).find('.bPic2').fadeIn(1000); 
          } 
        }
        function autotab2(){
          _index2++;
          if (_index2 > _item2.size()-1) {
              _index2 = 0;
            } else if (_index2 < 0) {
              _index2 = _item2.size()-1;
            }
            seletor2.find('.f-item2').removeClass('current');
            _fitem2.eq(_index2).closest('.f-item2').addClass('current');
            seletor2.find('.bPic2').hide();
            _fitem2.eq(_index2).find('.bPic2').fadeIn(1000);
        }
        
       
    })(jQuery);   
</script>